///////////////////////////////////////////////////////////////////////////// // Noritsu NetOrder SDK v1.0.6.0 // // QssSvr.IDL // // Copyright (C) 2002-2003 Noritsu Koki Co.,Ltd. All rights reserved. ///////////////////////////////////////////////////////////////////////////// [ uuid(6b4e94fe-5fc7-40a0-acf3-bae3063c9cfe), // UUID version(1.0), // Interface version pointer_default(unique) // Pointer default ] interface QssSvr { typedef pipe byte QSS_FRAME_PIPE; typedef pipe byte QSS_PROFILE_PIPE; typedef struct _QSS_PRINTER_INFO { char Name[20]; // QSS Model unsigned long Version; // Interface version unsigned char IPAddress[4]; // IP Address - Version 1.0.5 unsigned char Reserve[36]; // (Unused) } QSS_PRINTER_INFO; typedef struct _QSS_CLIENT_INFO { char User[20]; // User Name char Host[20]; // Host Name unsigned char Address[6]; // MAC Address unsigned char IPAddress[4]; // IP Address - Version 1.0.5 unsigned short Port; // Port number of the socketto receive event notification - Version 1.0.5 unsigned long Version; // Version of NetOrder API to use - Version 1.0.5 unsigned short Level; // Client Level - Version 1.0.5 unsigned char Reserve[38]; // (Unused) } QSS_CLIENT_INFO; typedef struct _QSS_FRAME_PARAM { unsigned short OrderNo; // Order Number unsigned short FrameNum; // Number of frame(s) unsigned short FrameNo; // Frame Number char FileName[18]; // File name of image unsigned long FileSize; // Size of image unsigned long ImageFormat; // Format of image unsigned short PrintSize; // Print size unsigned short RepeatNum; // Number of repeat unsigned short RepeatPos; // CVP printing to locate the print count. char CvpString1[120]; // Information to be printed on the 1st line of CVP. char CvpString2[120]; // Information to be printed on the 2nd line of CVP. unsigned short CvpFlg; // CVP Configuration unsigned short PaperWidth; // Paper Width - Version 1.0.4 unsigned short PaperLength; // Paper Length - Version 1.0.4 unsigned short Surface; // Surface - Version 1.0.4 unsigned short WithBorder; // (Unused) unsigned short PaperFittingFlg; // (Unused) unsigned short ImageXPixels; // (Unused) unsigned short ImageYPixels; // (Unused) unsigned short Reserve1; // (Unused) unsigned hyper RefId; // Reference Id - Version 1.0.4 unsigned short SizeRate; // (Unused) unsigned short Rotate; // (Unused) short CenterX; // (Unused) short CenterY; // (Unused) unsigned char Reserve[8]; // (Unused) } QSS_FRAME_PARAM; typedef struct _QSS_ORDER_PARAM { unsigned short OrderNo; // Order Number unsigned short FrameNum; // Number of frame(s) unsigned short PaperWidth; // Paper Width unsigned short PaperLengthC; // Paper Length[Classical] unsigned short PaperLengthP; // Paper Length[Panoramic] unsigned short PaperLengthH; // Paper Length[High-definition] unsigned short Surface; // Surface unsigned short WithBorderC; // Border[Classical] unsigned short WithBorderP; // Border[Panoramic] unsigned short WithBorderH; // Border[High-definition] unsigned short IndexPrintFlg; // Index print type. unsigned short PaperFittingFlg; // Paper Fitting unsigned short IndexPaperWidth; // Paper width for index print - Version 1.0.1 unsigned short IndexSurface; // Surface for index print - Version 1.0.1 unsigned short CmsFlg; // CMS - Version 1.0.3 unsigned short Reserve1; // (Unused) unsigned hyper RefId; // Reference Id - Version 1.0.4 unsigned short SorterNum; // Sorter Number - Version 1.0.6 unsigned char Reserve2[22]; // (Unused) } QSS_ORDER_PARAM; typedef struct _QSS_PAPER_INFO { unsigned short PaperWidth; // Paper Width unsigned short Resolut; // Resolut unsigned short MagazineState; // Presence of paper magazines. unsigned long PaperRemaind; // Paper remaining unsigned short Surface; // Surface unsigned short PaperLengthMin; // Minimum feed length - Version 1.0.3 unsigned short PaperLengthMax; // Maximum feed length - Version 1.0.3 unsigned char Reserve[48]; // (Unused) } QSS_PAPER_INFO; typedef struct _QSS_ERROR_INFO { unsigned short MainNo; // Number of errors unsigned short SubNo; // Suffix of error number unsigned short Level; // Error level wchar_t Message[256]; // Error message unsigned char Reserve[26]; // (Unused) } QSS_ERROR_INFO; typedef struct _QSS_ORDER_STATE { unsigned short OrderNo; // Order Number unsigned short OrderState; // Status of order unsigned char Reserve[28]; // (Unused) } QSS_ORDER_STATE; typedef struct _QSS_PRINTER_STATE { unsigned short QssState; // Define the status of QSS unsigned short AbleReceive; // Determine whether the input from the external source is printable or not on QSS. unsigned short AblePU; // Determine whether PU connected to QSS is enabled or not. QSS_PAPER_INFO MagazineA; // Define the information related to the paper magazine installed on QSS. QSS_PAPER_INFO MagazineB; // unsigned long SupportImageFormat; // Define the image format that QSS supports. unsigned hyper TotalPrintNum; // Define the total number of prints of the order currently being printed or printed last. unsigned short TemperatureCD; // Define the temperature of CD unsigned short TemperatureBF; // Define the temperature of BF unsigned short TemperatureSTB; // Define the temperature of STB unsigned short RemaindQuantityCD; // (Unused) unsigned short RemaindQuantityBF; // (Unused) unsigned short RemaindQuantitySTB; // (Unused) unsigned hyper SpoolerSpace; // Define the free space for the spool. - Version 1.0.3 unsigned char Reserve[26]; // (Unused) } QSS_PRINTER_STATE; typedef struct _QSS_PRINT_CHANNEL { short ChNo; // Define the channel number. unsigned short Meishou[11]; // Define the channel name. short Printtype; // Define the type of print. unsigned char InpMediaType; // Define the type of input media unsigned short MeishouCph[3][6]; // Define the print name for each type of print. short Haba[3]; // Define the width of the print for each type of print. short Mensitu[3]; // Define the type of paper surface for each type of print. short Feed[3]; // Define the advance length of paper for each type of print. short WbHaba[3]; // Define the width of the white border for each type of print. short SizeRate[3]; // Define the magnification ratio of the image for each type of print. signed short RokouichiHosei[3]; // Define the exposure position correction for each type of print. short CvpSw; // Define CVP printing flag. short FPSw; // Define the front print position. short IDPSize[3]; // Define the type of index print. short IndexHaba[3]; // Define the paper width of index paper. short IndexMensitu[3]; // Define the paper surface of index print. unsigned char OutMediaSw; // Define the type of output media. unsigned short OutMediaFormat; // Define the output format. unsigned char OutMediaInfoQuality; // Define the image quality. - Version 1.0.3 unsigned char OutMediaInfoQualityPer; // Define the quality ratio of the image to be saved to media. - Version 1.0.3 unsigned char OutMediaInfoSize; // Define the output size. - Version 1.0.3 unsigned char PaperFitSW; // Define the type of paper fitting. - Version 1.0.3 unsigned short EditModeNo; // Define the edit type. - Version 1.0.3 unsigned short Template; // Define the template type. - Version 1.0.3 unsigned char PapScan120; // (Unused) - Version 1.0.3 unsigned char Reserve1; // (Unused) - Version 1.0.3.3 unsigned short OutPrintSw; // Define the print flag - Version 1.0.3.3 unsigned short OutIndexSw; // Define the index flag. - Version 1.0.3.3 unsigned short OutPrintFrame; // Define the type of print frame. - Version 1.0.3.3 short HiSizeRate[3]; // (Unused) - Version 1.0.3.4 unsigned char Reserve[14]; // (Unused) - Version 1.0.3.3 } QSS_PRINT_CHANNEL; typedef struct _QSS_PU_INFO { char NameC[20]; // Product Name[Classical] char NameP[20]; // Product Name[Panoramic] char NameH[20]; // Product Name[High-definition] unsigned short QuantityC; // Print Count[Classical] unsigned short QuantityP; // Print Count[Panoramic] unsigned short QuantityH; // Print Count[High-definition] unsigned short PriceC; // Unit Price[Classical] unsigned short PriceP; // Unit Price[Panoramic] unsigned short PriceH; // Unit Price[High-definition] unsigned long SumC; // Price[Classical] unsigned long SumP; // Price[Panoramic] unsigned long SumH; // Price[High-definition] unsigned long ChargePrice; // Basic fee (charge fee) to be printed unsigned long IndexPrice; // Index price to be printed unsigned char Reserve[36]; // (Unused) } QSS_PU_INFO; typedef struct _QSS_SUM_INFO { unsigned long PChC[100]; // Define the total number of prints made in each print channel.[Classical] unsigned long PChP[100]; // Define the total number of prints made in each print channel.[Panoramic] unsigned long PChH[100]; // Define the total number of prints made in each print channel.[High-definition] unsigned long PaperPrint; // Total number of prints in Print Totals unsigned long PaperIndex; // Total number of prints in Index Print Totals unsigned long PaperSetup; // Total number of prints in Setup Print Totals unsigned long PaperLabel; // Total number of prints in Label Totals unsigned long PaperOther; // Total number of prints of Others unsigned long PaperTotal; // Total of PaperPrint, PaperIndex, PaperSetup, PaperLabel, and PaperOther. unsigned long WriteMedia; // Total number of media unsigned long WriteImage; // Total number of images written into storage media. unsigned short DisposalSpec; // Define the process specification of QSS. unsigned long TotalHojyu[9]; // Define the total amount of replenisher solution used on QSS. unsigned char Reserve[42]; // (Unused) } QSS_SUM_INFO; typedef struct _QSS_PROFILE_INFO // Version 1.0.3 { unsigned short DeviceKind; // Define the device whose profile you wish to get. unsigned short PaperWidth; // Paper Width unsigned short Surface; // Surface unsigned char Reserve[26]; // (Unused) } QSS_PROFILE_INFO; long QssGetName( [out] QSS_PRINTER_INFO* QssInfo // [out] QSS information ); long QssTransmitFile( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] QSS_FRAME_PIPE Pipe, // [in] RPC pipe [in] QSS_FRAME_PARAM FrameParam // [in] Frame print parameter ); long QssSetOrder( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] QSS_ORDER_PARAM OrderParam // [in] Order Print Parameter ); long QssAbort( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] unsigned short OrderNo // [in] Request number of the order to be deleted ); long QssSetPUInfo( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] unsigned short OrderNo, // [in] Request number [in] QSS_PU_INFO PuInfo // [in] PU output information ); long QssGetPaper( [in] short Flag, // [in] Get flag [in] long BufferNum, // [in] Number of buffer for paper information [out] long* PaperNum, // [out] Number of paper magazine installed / Number of paper magazine registered [out, size_is(BufferNum)] QSS_PAPER_INFO* PaperInfo // [out] Paper information ); long QssGetError( [in] short Flag, // [in] Get flag [in] long BufferNum, // [in] Buffer number of Error information [out] long* ErrorNum, // [out] Number of errors and/or attention messages currently occur [out, size_is(BufferNum)] QSS_ERROR_INFO* ErrorInfo // [out] Error information ); long QssGetOrderState( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] short Flag, // [in] Get flag [in] long BufferNum, // [in] Number of buffer for order status [out] long* OrderNum, // [out] Number of order acquired [in, out, size_is(BufferNum)] QSS_ORDER_STATE* OrderState // [in][out] Order status ); long QssGetPrinterState( [out] QSS_PRINTER_STATE* PrinterState // [out] Status of QSS ); long QssGetChannelInfo( [in] long BufferNum, // [in] Number of buffer for print channel information [out] long* ChannelNum, // [out] Number of print channel information [out, size_is(BufferNum)] QSS_PRINT_CHANNEL* PrintChannel // [out] Print channel information ); long QssGetSumInfo( [out] QSS_SUM_INFO* SumInfo // [out] Total information ); long QssGetProfile( [in] QSS_PROFILE_INFO ProfileInfo, // [in] Get profile information [out] QSS_PROFILE_PIPE Pipe // [out] RPC pipe ); typedef pipe byte QSS_PRINTER_PIPE; typedef struct _QSS_PRINTER_PARAM { unsigned short PaperWidth; // Paper Width unsigned short Surface; // Surface unsigned char Reserve[60]; // (Unused) } QSS_PRINTER_PARAM; long QssSetPrinter( [in] unsigned long PrinterInfoSize, // [in] Printer setup data size [in] QSS_PRINTER_PIPE Pipe, // [in] RPC pipe [in] QSS_PRINTER_PARAM PrinterParam // [in] Information of printer setup data registration ); typedef struct _QSS_FRAME_PARAM_EX { unsigned short OrderNo; // Order Number unsigned short FrameNum; // Number of frame(s) unsigned short FrameNo; // Frame Number char FileName[18]; // File name of image unsigned long FileSize; // Size of image unsigned long ImageFormat; // Format of image unsigned short PrintSize; // Print size unsigned short RepeatNum; // Number of repeat unsigned short RepeatPos; // CVP printing to locate the print count. char CvpString1[120]; // Information to be printed on the 1st line of CVP. char CvpString2[120]; // Information to be printed on the 2nd line of CVP. unsigned short CvpFlg; // CVP Configuration char DisplayName[260]; // File name of image unsigned char Reserve1[4]; // (Unused) unsigned short PaperWidth; // Paper Width - Version 1.0.4 unsigned short PaperLength; // Paper Length - Version 1.0.4 unsigned short Surface; // Surface - Version 1.0.4 unsigned char Reserve[30]; // (Unused) } QSS_FRAME_PARAM_EX; long QssTransmitFileEx( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] QSS_FRAME_PIPE Pipe, // [in] RPC pipe [in] QSS_FRAME_PARAM_EX FrameParamEx // [in] Frame print parameter ); long QssAbortRefId( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] unsigned hyper RefId // [in] Reference Id of the order to be deleted ); long QssGetPrinter( [out] unsigned long *PrinterInfoSize, // [out] Printer setup data size [out] QSS_PRINTER_PIPE Pipe, // [out] RPC pipe [in] QSS_PRINTER_PARAM PrinterParam // [in] Information of printer setup data registration ); // Extended order status - Version 1.0.5 typedef struct _QSS_ORDER_STATE_EX { unsigned short OrderNo; // Request number unsigned short OrderState; // Status of order unsigned short Reserve1[2]; // (Unused) unsigned hyper RefId; // Reference number unsigned char Reserve[16]; // (Unused) } QSS_ORDER_STATE_EX; // Get order state - Version 1.0.5 long QssGetOrderStateRefId( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] short Flag, // [in] Get flag [in] long BufferNum, // [in] Number of buffer for order status [out] long* OrderNum, // [out] Number of order acquired [in, out, size_is(BufferNum)] QSS_ORDER_STATE_EX* OrderStateEx // [in][out] Extended order status ); // Date and time - Version 1.0.5 typedef struct _QSS_DATETIME { unsigned short Year; // Year unsigned short Month; // Month unsigned short Day; // Day unsigned short Hour; // Hour unsigned short Miniute; // Miniute } QSS_DATETIME; // Order History - Version 1.0.5 typedef struct _QSS_ORDER_HISTORY { QSS_DATETIME ReceiptTime; // Defines the receipt time. QSS_DATETIME CompleteTime; // Defines the printing completed time. unsigned short ReceiptNo; // Defines the receipt number. unsigned short Status; // Defines the order type. unsigned short FrameNum; // Defines the total number of frames. unsigned short PaperWidth; // Defines the paper width. unsigned short Surface; // Defines the paper surface. unsigned short IndexPrintFlg; // Defines the index size. unsigned short PaperFittingFlg; // Defines the type of paper fitting. unsigned short ReceiptFlg; // Defines whether or not to issue order sheet. unsigned short OrderNo; // Defines order number. char Host[20]; // Defines host name. char User[20]; // Defines user name. unsigned short RequestNo; // Defines request number. unsigned char Address[6]; // Defines MAC address. unsigned short PrintNumC; // Defines number of print. unsigned short PrintNumP; // Defines number of print. unsigned short PrintNumH; // Defines number of print. unsigned short IndexPrintNum; // Defines number of index print. unsigned short MediaTotal; // Defines number of media to which data is output. unsigned short OutputPrint; // Defines whether to print or not. unsigned short OutputMedia; // Defines the type of output media. unsigned short CT1MediaOutput; // Defines media output on CT-1. unsigned short CT1OutputMedia; // Defines the type of output media used on CT-1. QSS_DATETIME PrintTime; // Defines printing start time. unsigned short PaperWidthB; // Defines paper width. unsigned short SurfaceB; // Defines paper surface. unsigned short Reserve1[6]; // (Unused) unsigned hyper RefId; // Defines reference number. unsigned char Reserve[8]; // (Unused) } QSS_ORDER_HISTORY; // Get order history - Version 1.0.5 long QssGetOrderHistory( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] QSS_DATETIME DateTime, // [in] Receipt date [in] short OrderStatus, // [in] Order Type [in] long BufferNum, // [in] Number of buffer for order history [out] long* OrderHistoryNum, // [out] Number of order acquired [in, out, size_is(BufferNum)] QSS_ORDER_HISTORY* OrderHistory // [out] Order history infomation ); long Reserve19(void); long Reserve20(void); long Reserve21(void); long Reserve22(void); long Reserve23(void); long Reserve24(void); long Reserve25(void); long Reserve26(void); long Reserve27(void); long Reserve28(void); long Reserve29(void); long Reserve30(void); long Reserve31(void); long Reserve32(void); long Reserve33(void); long QssStartNotify( [in] QSS_CLIENT_INFO ClientInfo, // [in] Client Information [in] unsigned long nKind // [in] Type of evnet ); long QssEndNotify( [in] QSS_CLIENT_INFO ClientInfo // [in] Client Information ); long Reserve36(void); // R2RSetDailyOrder typedef struct tagQSS_VERSION { unsigned short Model; // Model Code unsigned short MajorVer; // Major Version unsigned short MinorVer; // Minor Version char SpecialVer; // Special Version char Reserve; // (Unused) unsigned short Build; // Build Number } QSS_VERSION; long QssGetVersion ( [out] QSS_VERSION* Ver, // [out] QSS Version Information [out, size_is(32)] char* MsgDllVer // [o] MsgDll Version Information ); long QssCopyBkData ( [in, size_is(20)] char* Host // [in] Host Name ); long QssCopyTemplateData ( [in, size_is(20)] char* Host, // [in] Host Name [in] unsigned short Channel, // [in] Print Channel Number [in] unsigned short TemplateInf // [in] Copy Flag ); typedef struct tagQSS_COMPLETION_STATUS { char Host[20]; // Host Name unsigned short OrderNum; // Order Number unsigned short OrderInf; // Order Information unsigned short PrintCh; // Print Channel Number unsigned short Status; // Result unsigned short InputMedia; // Information of Input Media unsigned short OutputMedia; // Information of Output Media unsigned short ImageCount; // Number of Images unsigned short Copies; // Number of Media unsigned char OutputMediaQuality; // Quality of Output Media } QSS_COMPLETION_STATUS; long QssCompleted ( [in] QSS_COMPLETION_STATUS* Status // [in] Completion Status ); long Reserve41(void); long Reserve42(void); long Reserve43(void); long Reserve44(void); long Reserve45(void); long Reserve46(void); long Reserve47(void); long Reserve48(void); long Reserve49(void); long Reserve50(void); }